package com.xiaoq.matrix.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.matrix.entity.ContentMediaAccountEntity;
import com.xiaoq.matrix.repository.IContentMediaAccountRepository;
import com.xiaoq.matrix.service.IContentMediaAccountService;

@Component
public class ContentMediaAccountServiceImpl implements IContentMediaAccountService {
	
	@Autowired
	private IContentMediaAccountRepository contentMediaAccountRe;

	@Override
	public boolean saveContentMediaAccount(ContentMediaAccountEntity contetnMedisAccount) {
		
		return contentMediaAccountRe.saveMediaAccount(contetnMedisAccount);
	}

	@Override
	public ContentMediaAccountEntity findContentMediaAccount(String merchantId, String mediaId) {
		
		return contentMediaAccountRe.findCMA(merchantId, mediaId);
	}

	@Override
	public boolean delMediaAccount(String merchantId, String mediaId) {
		
		return contentMediaAccountRe.delMediaAccount(merchantId, mediaId);
	}

}
